﻿using BarManager.Core.BusinessRules.Interfaces.Validator;
using BarManager.Core.BusinessRules.Specification;
using BarManager.Core.DomainService;
using BarManager.Core.Entity;

namespace BarManager.Core.BusinessRules.Validator
{
    public class PromocionValidator : BaseValidator<Promocion>, IPromocionValidator
    {
        public PromocionValidator(IPromocionRepository repository)
        {
            Rules.Add(new Rule<Promocion>(ValidatorType.Add, new PromocionAddSpecificationDesc(repository)));     
            //Rules.Add(new Rule<Promocion>(ValidatorType.Update, new PromocionAddSpecificationDesc(repository)));            
        }
    }
}
